package com.ma.implatform.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

@Data
@Schema(description = "群聊消息DTO")
public class GroupMessageDTO {
    @Schema(description = "临时id")
    private String tmpId;
    @Schema(description = "群聊id")
    private Long groupId;
    @NotEmpty(message = "发送内容不可为空")
    @Length(max = 1024,message = "发送内容长度不得大于1024")
    @Schema(description = "发送内容")
    private String content;
    @Schema(description = "消息类型 0：文字，1：图片，2：文件，3：语音，4：视频")
    private Integer type;
    @Schema(description = "是否回执消息")
    private Boolean receipt =false;
    @Size(max = 20,message = "一次最多只能@20个小伙伴")
    @Schema(description = "被@用户列表")
    private List<Long> atUsetIds;
}
